package com.jchy.renderit.displayable;
 
import com.jchy.renderit.core.MultiPrimitiveObject;
import com.jchy.renderit.core.Point;

public class Tetrahedron extends MultiPrimitiveObject
{
    public Tetrahedron()
    {
        double tetxy=Math.sqrt(3)/3;
        double tetz=Math.sqrt(6)/3;
        Point a=new Point(-tetxy,0,tetz);
        Point b=new Point(tetxy,0,tetz);
        Point c=new Point(0,tetxy,-tetz);
        Point d=new Point(0,-tetxy,-tetz);
        multi.addElement(new Triangle(a,b,c));        
        multi.addElement(new Triangle(a,b,d));        
        multi.addElement(new Triangle(a,c,d));        
        multi.addElement(new Triangle(b,c,d));        
    }
}

